#include "Remote.h"

Remote* Remote::_instance = 0;

Remote::Remote(string& server, int port, bool debug) {
	remote = new BZRC(server.c_str(), port, debug);
}

Remote::~Remote(void)
{
}

void Remote::init(string& server, int port, bool debug) {
	if (_instance)
		delete _instance;

	_instance = new Remote(server, port, debug);
}

BZRC* Remote::instance() {
	return _instance->remote;
}
